﻿using System.Collections.Generic;
using Abp.Dependency;
using Magicodes.Plus.Application.Dto;

namespace Magicodes.ExcelExporter
{
    /// <summary>
    ///     导出
    /// </summary>
    public interface IExcelExporter : ISingletonDependency
    {
        /// <summary>
        ///     导出Excel
        /// </summary>
        /// <param name="fileName">文件名称</param>
        /// <param name="dataItems">数据列</param>
        /// <returns>文件</returns>
        FileDto Export<T>(string fileName, IList<T> dataItems);
    }
}